<!DOCTYPE>
<html>
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="__PUBLIC__/Home/css/user_center.css">
    <script src="__PUBLIC__/Admin/js/jquery-1.9.1.js"></script>
    <script src="__PUBLIC__/Common/Layer/layer.js"></script>
    <title>会员中心</title>
</head>

<body>

<style>
    .layui-layer{
        top:150px !important;
    }
</style>
<!-- 栏目 -->
<include file="Public:header_center" />

<!-- 内容 -->
<div style="background-color:#f5f5f5;">
    <div class="content" style="width:1200px;">

        <include file="Public:left_center" />

        <div class="center-right right">
            <h3 class="title">我的订单</h3>
            <div class="Options" style=" width:1050px; background-color:#FFF; padding:20px; text-align:center; height:380px; padding-top:50px;">

            <div style="font-size:16px; line-height:26px; margin-bottom:40px;">
                订单号 : {$result.orders_num}<br/><br/>
                订单金额 : <span style="color:#C71722;font-size:22px; font-weight:600;">￥ {$result.price_sum}</span> 元<br/>
            </div>

<if condition="empty($result['shouhuo_time'])">
            <h2 style="margin-bottom:70px;">请确认已收到货,再确认收货</h2>
              <form name="form1" method="post" action="__SELF__">
                <label for="textfield">请输入登录密码：</label>
                <input type="password" name="password" id="password" style="border:1px solid #CCC; height:30px; padding-left:2px; width:200px;">
                <input type="hidden" name="orders_id" value="{$result.id}" />
                <input type="submit" name="button" id="button" value="确认收货" style="padding:5px 10px;">
              </form>
<else/>
    <h2 style="margin-bottom:70px;">已确认收货</h2>

    <a href="{:U('User/my_order_lst')}"><span style="padding:10px 50px; font-size:16px; background:#4ECF5B; color:#FFF;">返回我的订单</span></a>
</if>
            </div>
        </div>
    </div>
    <!-- 底部 -->
    <include file="Public:footer_center" />
</body>

<script>
    //取消订单
    function cancel_order(id){
        $.post("{:U('User/cancel_order')}", { "id": id},function(data){
            if(data==1){
                layer.msg('删除成功', {

                    time: 2000 //2秒关闭（如果不配置，默认是3秒）
                }, function(){
                    $('.tab'+id).remove();
                });
            }else{
                layer.msg('删除失败');
            }
        }, "json");
    }
</script>
</html>
